﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Online_Model;
using Online_Service;
namespace Online_MusicEduction.Controllers
{
    public class UserController : Controller
    {
        //
        // GET: /User/
        Service_User bll = new Service_User();
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 权限登录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public ActionResult GetUserList()
        {
            string name = Request["name"];
            string pwd = Request["pwd"];
            List<Users> list = bll.GetUserList(name, pwd);
            return Json(list, JsonRequestBehavior.AllowGet);
        }

    }
}
